package com.gzhu.knowledgeAdmin.common.result;

import com.gzhu.knowledgeAdmin.common.vo.TemplateVO;
import lombok.Data;

import java.util.List;


/**
 * 树形结构节点
 */
@Data
public class TreeNode {

    Integer id;//父id
    TemplateVO templateVO;//data域,存储template的内容
    List<TreeNode> children;//子id

    public TreeNode(Integer id, List<TreeNode> children) {
        this.id = id;
        this.children = children;
    }

    public TreeNode(Integer id, TemplateVO templateVO, List<TreeNode> children) {
        this.id = id;
        this.templateVO = templateVO;
        this.children = children;
    }
}
